package com.ioffice.export.excel.engine.data.excel.impl;

import java.util.List;

import com.ioffice.exception.IOfficeException;
import com.ioffice.export.excel.data.ExcelSheetDataInfo;
import com.ioffice.export.excel.engine.data.excel.EngineDataSheetCompent;
import com.ioffice.export.excel.sheet.SheetGeneric;
import com.ioffice.export.excel.type.ExcelSheetType;

/**
 * 
 * @author <a href="mailto:goodluck.sunlight@gmail.com">chenboning</a>
 *
 * 
 * @descption 
 *
 * @version 1.0
 *
 *
 * @time  2013-5-21  下午4:20:52
 */
public abstract class AbstractEngineDataSheetCompent implements EngineDataSheetCompent {

	protected SheetGeneric compent=null;
	
	/***
	 * 将相关的数据转换为对应的sheet组件
	 * @param datas
	 * @param sheetType
	 */
	public abstract void data2SheetCompent(List<ExcelSheetDataInfo> datas,ExcelSheetType sheetType)throws IOfficeException;
	
	/**
	 * 获取当前构建的对象
	 * @return
	 */
	public SheetGeneric getSheetGenericCompent(){
		return this.compent;
	}
	
}
